package com.my.study.structures.queue;

/**
 * @author Carlos
 * @version 1.0
 * @Description TODO
 * @date 2021/6/2 23:17
 **/
public class QueueDemo {

    public static void main(String[] args) {

        ArrayQueue queue = new ArrayQueue(3);
        queue.addQueue(1);
        queue.addQueue(2);
        queue.addQueue(3);
        System.out.println(queue);

        int queue1 = queue.getQueue();
        int queue2 = queue.getQueue();
        int queue3 = queue.getQueue();
        System.out.println(queue);

        queue.addQueue(1);
        queue.addQueue(2);
    }
}
